#{extends 'main.html' /}
#{set title:'EdDriveCom : News' /}
<article>
    <div class="title_article_unclickable">Tous les Articles</div>
    <div class="content_article">


        <br />
        #{list items:entities, as:'entity'}
        <div class="news_articleindex">
            <span class="span_cat">cat : <b><i>${entity.category.toString()}</i></b></span><br/>
            <img src="@{'/public/images/Articles'}/${entity.images}" alt=" Image ${entity.images} introuvable"/>
            <span class="span_title"><a href="@{Application.articleshow(entity.id)}"><b>${entity.title}</b></a></span><br/><br/>
            <span class="span_info"><i>le ${entity.created.format('dd MMM yy')}  par <b>${entity.user.username}</b></i></span>
            <br/><br/>
            <p>${entity.content}</p>
            #{if entity.updated != entity.created}
            <span style="padding-left: 20px;"><i>Mis à jour le : ${entity.updated.format('dd MMM yy')} à ${entity.updated.format('hh:mm')}</i></span><br/><br/><br/>
            #{/if}
        </div>
        #{/list}
    </div>
</article>
